<template>
	<view>
		<view>{{username}}</view>
		<view v-for="tel in tels">{{tel}}</view>
		<view v-if="age>18">
		<button @tap="signUp(age)">我要报名</button>
		</view>
		<view>
			<input type="text" v-model="address" placeholder="输入地址"></button>
		</view>
		<view>{{address}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username:"scoot",
				tels:['13842342341','13842342342','13842342343'],
				age:22,
				address:''
			}
		},
		methods: {
			signUp:function(age){
				uni.showToast({
					title:"报名成功！"+age
				})
			}
		}
	}
</script>

<style>

</style>
